import { ICommonParams } from '../../interfaces';
import page from './_page';

export default function html(msg: ICommonParams, actionid: string, sessionid: string, spaceid: string) {
	// console.debug || (console.debug = function () { });
	const params = msg;
	const url = params.url;
	const file_name = decodeURIComponent(url.match(/.*\/(.*?)\.html/)![1]);
	return page(file_name, spaceid, url, msg, actionid, sessionid);
}
